<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="50" name="row[image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="text" >
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-images" class="btn btn-danger faupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box nPrincipal_id-right" for="c-images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Key_word')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-key_word" class="form-control" rows="5" name="row[key_word]" placeholder="多个以逗号分隔" cols="50"></textarea>
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Course_type_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-course_type_id" data-rule="required" data-source="sign_up/course_type/index" data-field="title" class="form-control selectpage" name="row[course_type_id]" type="text" value="">
        </div>
    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Place_departure')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-place_departure" class="form-control" name="row[place_departure]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Course_type_id')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="typeList" item="vo" key="key"}
                <label for="row[course_type_id]-{$key}"><input id="row[course_type_id]-{$key}" name="row[course_type_id]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Course_type_purpose_id')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="checkbox">
                {present name="$purposeList"}
                {volist name="$purposeList" id="vo"}
                <label for="row[course_type_purpose_id]-{$key}">
                    <input id="row[course_type_purpose_id]-{$key}" name="row[course_type_purpose_id][]" type="checkbox" value="{$vo.id}"> {$vo.title}
                </label>
                {/volist}
                {/present}
            </div>
        </div>

    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('People_number')}:</label>
        <div class="col-xs-12 col-sm-8">


            <div class="radio">
                {foreach name="peopleNumberList" item="vo"}
                <label for="row[people_number]-{$key}"><input id="row[days]-{$key}" name="row[people_number]" type="radio" value="{$key}"  {in name="key" value=""}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Days')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-days" class="form-control selectpicker" name="row[days]">
                {foreach name="daysList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_home')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                <label for="row[is_home]-1"><input id="row[is_home]-1" name="row[is_home]" type="radio" value="0"  checked /> 不展示</label>
                <label for="row[is_home]-2"><input id="row[is_home]-2" name="row[is_home]" type="radio" value="1"  /> 展示</label>

            </div>

        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_detail')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-product_detail" class="form-control " rows="5" name="row[product_detail]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Heat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-heat" class="form-control" step="0.01" name="row[heat]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Likes')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-likes" class="form-control"  name="row[likes]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Collect')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-collect" class="form-control"  name="row[collect]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Satisfaction')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-satisfaction" class="form-control" step="0.01" name="row[satisfaction]" type="number">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Characteristic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-characteristic" class="form-control" name="row[characteristic]" type="text">
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Principal_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-principal_id" data-rule="required" data-source="auth/admin/selectpage" data-field="nickname" class="form-control selectpage" name="row[principal_id]" type="text" value="">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Introduce')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-introduce" class="form-control editor" rows="5" name="row[introduce]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Route_introduction')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-route_introduction" class="form-control editor" rows="5" name="row[route_introduction]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Schedule')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-schedule" class="form-control editor" rows="5" name="row[schedule]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fee_description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-fee_description" class="form-control editor" rows="5" name="row[fee_description]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reservation_notice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-reservation_notice" class="form-control editor" rows="5" name="row[reservation_notice]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Custom_made')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-custom_made" class="form-control editor" rows="5" name="row[custom_made]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Precautions')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-precautions" class="form-control editor" rows="5" name="row[precautions]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
